package top.huhuiyu.ds;

/**
 * 测试递归算法
 * 
 * @author Aiden Pearce
 *
 */
public class RecursionDemo {
  public static void main(String[] args) {
    System.out.println(Recursion.factorial(5));
    System.out.println(Recursion.factorial(6));
    System.out.println(Recursion.factorial(10));
    System.out.println("======================");
    System.out.println(Recursion.rfactorial(5));
    System.out.println(Recursion.rfactorial(6));
    System.out.println(Recursion.rfactorial(10));
  }
}
